package com.itttq.kb.model.po;

import java.util.Date;

import com.itttq.kb.common.annotation.Column;
import com.itttq.kb.common.annotation.Column.ColumnType;
import com.itttq.kb.common.annotation.Table;

/** 主题表 **/

@Table(name="kb_topic")
public class TopicPo extends BasePo {
	private static final long serialVersionUID = -8152419358557117933L;
	/* 分类ID */
	@Column(name="category_id",type=ColumnType.NUMBER)
	private Integer categoryId;
	/* 分类名称 */
	@Column(name="category_name")
	private String categoryName;
	/* 主题内容 */
	@Column(name="content")
	private String content;
	/* 创建时间 */
	@Column(name="create_time", inInsert=false, inUpdate=false)
	private Date createTime;
	
	/* 创建人ID */
	@Column(name="creator_id",type=ColumnType.NUMBER)
	private Integer creatorId;
	
	@Column(name="id", inInsert=false, inUpdate=false, inSelect=false,type=ColumnType.NUMBER)
	private Integer id;
	/* 是否精华。1、是；2、否。 */
	@Column(name="is_essence",type=ColumnType.NUMBER)
	private Integer isEssence;
	/* 是否推荐。1、是；2、否。 */
	@Column(name="is_recommon",type=ColumnType.NUMBER)
	private Integer isRecommon;
	/* 是否置顶。1、是；2、否。 */
	@Column(name="is_top",type=ColumnType.NUMBER)
	private Integer isTop;
	/* 阅读数 */
	@Column(name="number_read",type=ColumnType.NUMBER)
	private Integer numberRead;
	/* 回复数 */
	@Column(name="number_reply",type=ColumnType.NUMBER)
	private Integer numberReply;
	/* 发布者IP，如果是多重IP，考虑都记录下来。作为跟踪使用 */
	@Column(name="publish_ip")
	private String publishIp;
	/* 分类状态：1、开启；2、关闭。 */
	@Column(name="status",type=ColumnType.NUMBER)
	private Integer status = 1;
	/* 标题 */
	@Column(name="title")
	private String title;
	/* 数据更新时间 */
	@Column(name="update_time", inInsert=false, inUpdate=false)
	private Date updateTime;
	/* 更新人ID */
	@Column(name="updater_id",type=ColumnType.NUMBER)
	private Integer updaterId;
	
	
	//////// 以下为VO需要添加的
	/* 创建人头像 */
	private String creatorAvatar;
	/* 创建人姓名 */
	private String creatorName;
	
	public Integer getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getCreatorAvatar() {
		return creatorAvatar;
	}
	public void setCreatorAvatar(String creatorAvatar) {
		this.creatorAvatar = creatorAvatar;
	}
	
	public Integer getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}
	
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getIsEssence() {
		return isEssence;
	}
	public void setIsEssence(Integer isEssence) {
		this.isEssence = isEssence;
	}
	
	public Integer getIsRecommon() {
		return isRecommon;
	}
	public void setIsRecommon(Integer isRecommon) {
		this.isRecommon = isRecommon;
	}
	
	public Integer getIsTop() {
		return isTop;
	}
	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}
	
	public Integer getNumberRead() {
		return numberRead;
	}
	public void setNumberRead(Integer numberRead) {
		this.numberRead = numberRead;
	}
	
	public Integer getNumberReply() {
		return numberReply;
	}
	public void setNumberReply(Integer numberReply) {
		this.numberReply = numberReply;
	}
	
	public String getPublishIp() {
		return publishIp;
	}
	public void setPublishIp(String publishIp) {
		this.publishIp = publishIp;
	}
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public Integer getUpdaterId() {
		return updaterId;
	}
	public void setUpdaterId(Integer updaterId) {
		this.updaterId = updaterId;
	}
	
}